﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LIM.model;
using System.Data.Objects;

namespace LIM.controller
{
    public class DanhMucLoaiMauController : BaseController
    {
        public List<tbl_DanhMuc_LoaiMau> LayDanhSach_LoaiMau()
        {
            var results = LIMS_Entities.tbl_DanhMuc_LoaiMau.ToList();
            return results;
        }
        public List<tbl_DanhMuc_PhongBan> LayDanhSach_PhongBan()
        {
            var results = LIMS_Entities.tbl_DanhMuc_PhongBan.ToList();
            return results;
        }
        public virtual void Refresh_tbl_DanhMuc_LoaiMau()
        {
            LIMS_Entities.Refresh(RefreshMode.StoreWins, LIMS_Entities.tbl_DanhMuc_LoaiMau);
        }
        public tbl_DanhMuc_LoaiMau LayLoaiMauByRowID(int RowID)
        {
            return LIMS_Entities.tbl_DanhMuc_LoaiMau.Where(p => p.RowID == RowID).FirstOrDefault();
        }
        public List<tbl_DanhMuc_LoaiDichVuKiemNghiem> LayDichVuKiemNghiem()
        {
            return LIMS_Entities.tbl_DanhMuc_LoaiDichVuKiemNghiem.ToList();
        }
    }
}
